<?php
/**
 * 站点配置类
 * @Author hugo
 * @Email webmaster@jushare.com
 */
namespace Cpanel\Controller;
use Common\Controller\CpanelController;

class SettingController extends CpanelController
{
    function _initialize()
    {
        parent::_initialize();
        $this->mode = D('Setting');
    }

    public function _before_index()
    {
        $data = self::$mode->select();
        $data = \Library\Tree::treeArray($data, 'id', 'parent_id');
        $this->assign('config', $data);
    }
}